//
//  prepareView.swift
//  Motion
//
//  Created by 悦月越悦 on 2021/4/8.
//

import SwiftUI

struct PrepareView: View {
    @Binding var nAction:Action1?
    
    var body: some View {
        VStack(){
            Spacer()
            Text("准备一下😄")
                .customFont(40, true)
                .foregroundColor(.purple)
                .padding(20)
                .overlay(
                    Capsule()
                        .stroke(Color.purple, style: StrokeStyle(lineWidth: 5, dash: [10]))
                    
                )
                .padding(.bottom,20)
            
            if(nAction != nil){
                Text("下一个动作:\(nAction?.actionName ?? "")")
                    .customFont(20, true)
                    .foregroundColor(.white)
            }
            
            Spacer()
        }
        .frame(
            width: UIScreen.main.bounds.width,
            height: UIScreen.main.bounds.height
        )
        .background(Color("lightPurple"))
        
    }
}


//struct prepareView_Previews: PreviewProvider {
//  static var previews: some View {
//        PrepareView()
//  }
//}
